package com.yanqu.road.entity.activity.apprentice;

public class ApprenticeTalentData {

    /**
     * 天资类型
     */
    private int type;

    /**
     * 天资值
     */
    private long value;

    public ApprenticeTalentData() {
    }

    public ApprenticeTalentData(int type, long value) {
        this.type = type;
        this.value = value;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getValue() {
        return value;
    }

    public void setValue(long value) {
        this.value = value;
    }

    public void addValue(long value) {
        this.value += value;
    }

    /**
     * toString
     * @return
     */
    public String talentToString() {
        return type + ":" + value;
    }
}
